<%@ page language="java" pageEncoding="utf-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>

<div class="wrap-main-column-side">

	<div class="w-side-inside">
		<div class="class-showbox">
			<div class="title">班级风采</div>
			<div class="showbox">
				<div class="box" id="box">
					
				</div>
			</div>
		</div>
	</div>
</div>
<script type="text/javascript">
	$('#box').bjqs({
		// animtype      : 'slide',
		height : 171,
		width : 249,
		responsive : true,
		randomstart : true
	});

	//班级风采
	function campusStyle() {
		var fun = function(data) {
			if (!isnull(data.cpList) && 0 < data.cpList.length) {
				var cpList = data.cpList;
				var return_array = getArrayItems(cpList, 6);
				var temp = "<ul id='csUl' class='flost-list clearfix bjqs'>";
				for ( var i = 0; i < return_array.length; i++) {
					temp += "<li style='width: 100%'><a style='width: 100%' href='${aier_url}classes/classeshome_classesAlbum.shtml?cid=${cid}'><img style='width: 100%' src='${classgal_get_url}big/"
							+ return_array[i].img + "'</a></li>";
				}
				temp += "</ul>";
				$("#box").html(temp);
				$('#box').bjqs({
					// animtype      : 'slide',
					height : 210,
					width : 300,
					responsive : true,
					randomstart : true
				});
			}
		};
		exeAjax(
				ajaxUrl("${aier_url}${aier_urijs}ccomm_searchClassPhotoImg${aier_suffix}"),
				fun, {
					"cid" : "${cid}"
				});
	}
	campusStyle();
</script>